package com.qidian.mes.defect.controller;

import com.qidian.mes.defect.service.TaskService;
import com.qidianit.common.pojo.MESResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author 泽华
 * @Description
 * @Time 2024-10-24 1:51
 */
@RestController
@CrossOrigin
@RequestMapping("/task")

public class TaskController {
    @Autowired
    private TaskService taskService;
    @GetMapping("/list")
    public MESResult list(Long documentsId,
                          String detectionName,
                          String materialNumber,
                          String materialName,
                          Long taskNumber,
                          String location,
                          @RequestParam(defaultValue = "1")int page,
                          @RequestParam(defaultValue = "10") int limit){
        return taskService.list(documentsId,detectionName,materialNumber,materialName,taskNumber,location,page,limit);
    }





}
